// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import search from './components/search/search.vue'
import music from './components/music/music.vue'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import Sass from 'sass'
import { store } from './store/store.js'



Vue.use(Mint);
Vue.use(VueRouter);
const routes=[{path:"/",redirect: '/search'},
              {path:'/search',component:search},
              {path:'/music/:id',component:music}];
var router=new VueRouter({
    linkActiveClass:'active',
    routes
});

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
